package com.shopping.shoppingdemo.domain.po;

import com.shopping.shoppingdemo.enums.AuditAction;
import lombok.Data;

import java.time.Instant;


public class AuditRecord {
    private final String operator;
    private final AuditAction action;
    private final String comment;
    private final Instant time;


    public AuditRecord(String operator, AuditAction action, String comment, Instant time) {
        this.operator = operator;
        this.action = action;
        this.comment = comment;
        this.time = time;
    }


// getter

    public String getOperator() {
        return operator;
    }

    public AuditAction getAction() {
        return action;
    }

    public String getComment() {
        return comment;
    }

    public Instant getTime() {
        return time;
    }

}